package com.ruoyi.student.service.impl;

import com.ruoyi.student.domain.XsXsjbsj;
import com.ruoyi.student.domain.vo.StudentEducationalLocalListSearchVo;
import com.ruoyi.student.mapper.StudentEducationalLocalMapper;
import com.ruoyi.student.mapper.XsXsjbsjMapper;
import com.ruoyi.student.service.IStudentEducationalLocalService;
import com.ruoyi.student.service.IStudentEducationalRemoteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class StudentEducationalLocalService implements IStudentEducationalLocalService {

    @Resource
    private XsXsjbsjMapper xsXsjbsjMapper;


    @Resource
    private StudentEducationalLocalMapper studentEducationalLocalMapper;


    /**
     * 删除表中所有数据，并重置表
     */
    @Override
    public void deleteAll() {
        xsXsjbsjMapper.deleteAll();
    }

    /**
     * 插入
     *
     * @param xsXsjbsj
     * @return
     */
    @Override
    public int insert(XsXsjbsj xsXsjbsj) {
        return xsXsjbsjMapper.insertXsXsjbsj(xsXsjbsj);
    }


    /**
     * 清洗教务数据
     */
    @Override
    public void cleanJxData() {
        xsXsjbsjMapper.cleanJxData();
    }

    /**
     * 同步学生姓名
     */
    @Override
    public void synStudentName() {
        xsXsjbsjMapper.synStudentName();
    }


    /**
     * 获取学籍变动学生信息
     *
     * @return
     */
    @Override
    public List<XsXsjbsj> selectChangeList() {
        return xsXsjbsjMapper.selectChangeList();
    }


    /**
     * 获取本地教务库列表
     *
     * @param req
     * @return
     */
    //@Override
    //public List<XsXsjbsj> selectStudentEducationalLocalList(StudentEducationalLocalListSearchVo req) {
    //    return studentEducationalLocalMapper.selectStudentEducationalLocalList(req);
    //}


}
